home *** CD-ROM | disk | FTP | other *** search
/ Champak 29 / Volume 29 - JOGO DISK .iso / Games / jungle_adventure.swf / scripts / __Packages / DirectionArrow.as < prev    next >
Text File  |  2006-11-29  |  1KB  |  38 lines

  1. class DirectionArrow extends SSObject
  2. {
  3.    var assetID = "Arrow";
  4.    var angle = 0;
  5.    var pointAngle = 0;
  6.    var depthLayer = 1;
  7.    var editor_isItem = true;
  8.    var editor_name = "Arrow";
  9.    var editor_args_names = ["angle","pointAngle"];
  10.    var editor_args_values = [DirectionArrow.prototype.angle,DirectionArrow.prototype.pointAngle];
  11.    var editor_args_types = ["number","number"];
  12.    var editor_args_options = [[-360,360,1],[-360,360,1]];
  13.    var editor_args_descriptions = ["",""];
  14.    var editor_args_mode = [0,0];
  15.    var editor_args_component = ["NumericStepper","NumericStepper"];
  16.    var editor_canChangeFrame = false;
  17.    function DirectionArrow(angle, pointAngle)
  18.    {
  19.       super();
  20.       if(angle)
  21.       {
  22.          this.angle = angle;
  23.       }
  24.       if(pointAngle)
  25.       {
  26.          this.pointAngle = pointAngle;
  27.       }
  28.    }
  29.    function onAddDisplay()
  30.    {
  31.       this.target.a._rotation = - (this.target._rotation = this.angle) + this.pointAngle;
  32.    }
  33.    function editor_onDisplay(target)
  34.    {
  35.       target.a._rotation = - (target._rotation = this.angle) + this.pointAngle;
  36.    }
  37. }
  38.